package com.pzhu.view;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class LoginPage extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/html;charset=utf-8");
        resp.getWriter().write("" +
                "<html>" +
                "<head>" +
                "    <title>登录</title>" +
                "</head>" +
                "<body>" +
                "    <form action='login' method='post'>" +
                "       用户名： <input type='text' name='uname' id='uname'><br/>" +
                "       密码： <input type='password' name='pwd' id='pwd'><br/>" +
                "        <input type='submit' value='登录'>" +
                "    </form>" +
                "</body>" +
                "</html>");
    }
}
